package com.code.man.config;

import lombok.Data;

import java.util.Set;

/**
 * 模板配置
 *
 * @author Gohan
 * @date 2018年7月13日
 */
@Data
public class GeneratorConfig {
    /**
     * 作者
     **/
    private String author;

    /**
     * 数据库连接jdbcUrl
     */
    private String jdbcUrl;
    /**
     * 数据库登录用户
     */
    private String username;
    /**
     * 数据库登录口令
     */
    private String password;
    /**
     * 数据库schema
     **/
    private String database;
    /**
     * 表名
     **/
    private Set<String> tables;
    /**
     * 表名忽略的前缀名
     */
    private String tablesIgnorePrefix;

    /**
     * 输出目录
     **/
    private String outputPath;

    private String outputJava;

    private String outputXml;

    /**
     * Java生成类包名称
     */
    private String generatePackage;

    private String packageEntity;
    private String packageMapper;
    private String packageService;
    private String packageServiceImpl;
    private String packageController;

    private String packageMapperXml;

    private String suffixEntity;
    private String suffixMapper;
    private String suffixService;
    private String suffixServiceImpl;
    private String suffixController;

    private boolean isControllerChecked;
    private boolean isServiceChecked;
    private boolean isServiceImplChecked;
    private boolean isEntityChecked;
    private boolean isMapperChecked;
    private boolean isMapperXmlChecked;
}
